<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	import="java.util.*,bc.swim2.ejb.entity.Ability"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<style>
@import url(css/main.css);
</style>
</head>
<body>
	<div id="allContainer">
		<h1 id="pageTitle">Search Help here</h1>
		<div id="singleContainer">
			<h1 id="listTitle">Select the ability you need:</h1>

			<%
				List<Ability> abilities = null;
				abilities = (List<Ability>) request.getAttribute("allAbilityList");
			%>
			<form action=SearchHelpServlet method='POST'>
				<select id="textInput" name="selectAbility">

					<%
						for (Ability a : abilities) {
							int abilityId = a.getId();
							String abilityName = a.getName();
					%>

					<option value=<%=abilityId%>><%=abilityName%>
					</option>
					<%
						}
					%>

				</select> <input type="hidden" name="methodName" value="notRegSearchHelp">
				<input type="submit" id="submitInputA" value="Search">
			</form>
		</div>
	</div>

</body>
</html>